package jee.boot.entity.file;

import jee.boot.common.annotation.Column;
import jee.boot.common.annotation.Table;
import jee.boot.common.basic.DataEntity;

/**
 * 附件Entity
 *
 * @author zhilei.wang
 * @version 2018-01-25
 */
@Table(name="st_attachment_mapping")
public class AttachmentMapping extends DataEntity<AttachmentMapping> {
    private String businessId;//业务Id
    private String fieldName;//业务属性名称
    @Column(data = {"attachment.id","attachment.fileId","attachment.fileName","attachment.fileType","attachment.savePath","attachment.contentType"})
    private Attachment attachment;//附件

    public AttachmentMapping() {
    }

    public AttachmentMapping(String id) {
        super(id);
    }

    public String getBusinessId() {
        return businessId;
    }

    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }

    public Attachment getAttachment() {
        return attachment;
    }

    public void setAttachment(Attachment attachment) {
        this.attachment = attachment;
    }

    public String getFieldName() {
        return fieldName;
    }
    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }
}